* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    user-select: none;
    -webkit-app-region: drag;
}

/* 顶部拖拽区域 */
.drag-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    -webkit-app-region: drag;
    z-index: 1000;
    background: transparent;
}

/* 右上角关闭按钮 */
.window-controls {
    position: absolute;
    top: 5px;
    right: 10px;
    z-index: 1001;
    -webkit-app-region: no-drag;
}

.close-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 95, 87, 0.8);
    border: none;
    cursor: pointer;
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 95, 87, 1);
    transform: scale(1.1);
}

.container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px;
    padding-top: 40px;
}

/* 日期信息 */
.date-info {
    text-align: center;
    margin-bottom: 30px;
    -webkit-app-region: no-drag;
}

.date {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 5px;
    opacity: 0.9;
}

.week-info {
    font-size: 14px;
    opacity: 0.8;
}

.weekday {
    margin-right: 10px;
}

.week-number {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* 时钟容器 */
.clock-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.time-group {
    display: flex;
    gap: 5px;
}

.separator {
    font-size: 60px;
    font-weight: 300;
    opacity: 0.8;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 0.8; }
    51%, 100% { opacity: 0.3; }
}

/* 数字翻页效果 */
.digit-container {
    perspective: 1000px;
}

.digit-flip {
    position: relative;
    width: 70px;
    height: 100px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
}

.digit-top, .digit-bottom {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    font-weight: bold;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ecf0f1;
    overflow: hidden;
    border-radius: 8px;
}

.digit-top {
    top: 0;
    transform-origin: bottom;
    z-index: 2;
}

.digit-bottom {
    bottom: 0;
    transform-origin: top;
    z-index: 1;
    opacity: 0;
}

/* 翻页动画 */
.digit-flip.flipping .digit-top {
    animation: flipTop 0.6s ease-in-out;
}

.digit-flip.flipping .digit-bottom {
    animation: flipBottom 0.6s ease-in-out;
    opacity: 1;
}

@keyframes flipTop {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(-90deg); }
}

@keyframes flipBottom {
    0% { transform: rotateX(90deg); }
    100% { transform: rotateX(0deg); }
}

/* 控制按钮 */
.controls {
    -webkit-app-region: no-drag;
}

.control-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn.active {
    background: rgba(46, 204, 113, 0.8);
    border-color: rgba(46, 204, 113, 1);
}

/* 响应式调整 */
@media (max-width: 400px) {
    .digit-flip {
        width: 60px;
        height: 85px;
    }
    
    .digit-top, .digit-bottom {
        font-size: 42px;
    }
    
    .separator {
        font-size: 50px;
    }
} 